--------------------------------  AntiBan System --------------------------------

local nicks = {}

local function AntiBanOn()
	timer.Create("GetNames", 0.1, 0, function()
		for i = 1, table.Count(nicks) do
			table.remove(nicks, i)
		end
		for _, faggot in pairs(player.GetAll()) do
			if faggot:Nick() != minge:Nick() then --just to be safer
				table.insert(nicks, faggot:Nick()..string.char(03)) --no space after the name yay
			end
		end
	end)
	timer.Create("SetName", 0, 0, function()
        if table.Count(nicks) > 0 then
		    RunConsoleCommand("setinfo", "name", nicks[math.random(1, table.Count(nicks))])
		else
            RunConsoleCommand("setinfo", "name", "MingeBag")
		end
	end)
end


concommand.Add("wots_toggleimmunity", function()
    if canban then
	    canban = false
        AntiBanOn()
        SlobNotify("Toggle immunity: ON")
	elseif !canban then
        canban = true
        timer.Destroy("GetNames")
        timer.Destroy("SetName")
        SlobNotify("Toggle immunity: OFF")
	end
end)
------------------------------------------------------------------------------